<?php
	include_once "../models/Model.php";
	$model=new Model();
	$userAccName=$_POST['UserID'];
	$date=date('Y-m-d',strtotime($_POST['Date']));
	$unauthorizedTime=$_POST['Unauthorized_Time'];
	$user=$model->searchUserAccName($userAccName);
	$userId=$user->getUserId();
	$model->userPenalty($userId,$date,$unauthorizedTime);
	header('Location:../view/manager/admin.php');
?>